import Vue from 'vue'
import App from './App.vue'

import "./assets/styles/index.scss"

//配置vuex store
import store from './store/index'
// 配置路由
import router from '@/router'
// aliicon
import "@/assets/iconfont/iconfont.css";
//ele
import './plugins/element.js'
// 弹幕插件
import 'primeflex/primeflex.min.css';
//动画效果
import mavonEditor from 'mavon-editor'


// markdown插件
import 'mavon-editor/dist/css/index.css'
import animated from 'animate.css'
import hljs from 'highlight.js' //导入代码高亮文件
import 'highlight.js/styles/googlecode.css'
//use v-highlight
//自定义一个代码高亮指令
Vue.directive('highlight', function (el) {
  let highlight = el.querySelectorAll('pre code');
  highlight.forEach((block) => {
    hljs.highlightBlock(block)
  })
})

Vue.use(mavonEditor)
Vue.config.productionTip = false
new Vue({
  render: h => h(App),

  store,  //vuex
  //router //router
  router
}).$mount('#app')
